package com.xuzhi.mybatis;

import org.apache.ibatis.session.SqlSession;

import com.xuzhi.mapper.UserInfoMapper;
import com.xuzhi.po.UserInfo;
import com.xuzhi.util.MybatisUtil;

public class test1 {
	
	public static void main(String[] args) {
		SqlSession sqlSession= MybatisUtil.getSession();
        UserInfoMapper Mapper=sqlSession.getMapper(UserInfoMapper.class);
        UserInfo userInfo=new UserInfo(123,"123","123",123123);
        
	    Mapper.insert(userInfo);
        sqlSession.commit();
        sqlSession.close();
		
	}
	
}
